package com.cyy.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyy.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 邮箱配置
 * </p>
 *
 * @author 曹云友
 * @since 2024-03-28
 */
@Getter
@Setter
@TableName("email_config")
public class EmailConfig extends BaseEntity {

    /**
     * 类型
     */
    private String type;

    /**
     * 邮箱发件人
     */
    private String username;

    /**
     * 邮箱授权码
     */
    private String password;

    /**
     * smtp地址
     */
    private String smtpAddress;

    /**
     * smtp端口
     */
    private Integer smtpPort;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人", example = "创建人")
    private Integer createBy;


    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人", example = "更新人")
    private Integer updateBy;
}
